home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-15
/
pf271.zip
/
COMMTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-22
|
6KB
|
127 lines
@echo off
rem
rem +-----------------------------------------+
rem ! Port Finder ERRORLEVEL Batch File !
rem ! Copyright (c) 1990 mcTRONic Systems !
rem ! revised on: August 4, 1990 !
rem ! File Name: COMMTEST.BAT !
rem +-----------------------------------------+
rem
if not exist pf.com goto :error
cls
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ║
echo ║ ▒█▀▒█ ▒█▀▒█ ▒█▀▒█ ▀▒█▀▀ ▒█▀▀▀ ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█ ║
echo ║ ▒▒▒▒█ ▒█ ▒█ ▒▒▒▄▀ ▒█ ▒▒▒▄ ▒█ ▒█▒█▒█ ▒█ ▒█ ▒█▀▀ ▒▒▒▄▀ ║
echo ║ ▒█▀▀▀ ▒▒▒▒█ ▒█▀▒▄ ▒█ ▒█▀▀ ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄ ║
echo ║ ▀ ▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀▀ ▀▀▀▀ ▀▀▀▀ ▀ ▀ ║
echo ║ ║
echo ║ The Number ONE Shareware COM and LPT Port Utility ║
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ You can use Port Finder in a batch file to determine the number ║
echo ║ of COM ports that are installed in any IBM or compatible computer. ║
echo ║ Press any key to see the COM ports installed in your computer. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
cls
pf %1 %2 >nul
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ▒▒▒▒▄ ║
echo ║ ▒█▀▒█ ▒█▀▒█ ▒█▀▒█ ▀▒█▀▀ ▒█▀▀▀ ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█ ║
echo ║ ▒▒▒▒█ ▒█ ▒█ ▒▒▒▄▀ ▒█ ▒▒▒▄ ▒█ ▒█▒█▒█ ▒█ ▒█ ▒█▀▀ ▒▒▒▄▀ ║
echo ║ ▒█▀▀▀ ▒▒▒▒█ ▒█▀▒▄ ▒█ ▒█▀▀ ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄ ║
echo ║ ▀ ▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀▀ ▀▀▀▀ ▀▀▀▀ ▀ ▀ ║
echo ║ ║
echo ║ The Number ONE Shareware COM and LPT Port Utility ║
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
if errorlevel 15 goto 15port
if errorlevel 14 goto 14port
if errorlevel 13 goto 13port
if errorlevel 12 goto 12port
if errorlevel 11 goto 11port
if errorlevel 10 goto 10port
if errorlevel 9 goto 9port
if errorlevel 8 goto 8port
if errorlevel 7 goto 7port
if errorlevel 6 goto 6port
if errorlevel 5 goto 5port
if errorlevel 4 goto 4port
if errorlevel 3 goto 3port
if errorlevel 2 goto 2port
if errorlevel 1 goto 1port
if errorlevel 0 goto 0port
:0port
echo ║ You have no COM ports! ║
goto endall
:1port
echo ║ You have COM port 1 ║
goto endall
:2port
echo ║ You have COM port 2 ║
goto endall
:3port
echo ║ You have COM ports 1 and 2 ║
goto endall
:4port
echo ║ You have COM port 3 ║
goto endall
:5port
echo ║ You have COM ports 1 and 3 ║
goto endall
:6port
echo ║ You have COM ports 2 and 3 ║
goto endall
:7port
echo ║ You have COM ports 1, 2, and 3 ║
goto endall
:8port
echo ║ You have COM port 4 ║
goto endall
:9port
echo ║ You have COM ports 1 and 4 ║
goto endall
:10port
echo ║ You have COM ports 2 and 4 ║
goto endall
:11port
echo ║ You have COM ports 1, 2, and 4 ║
goto endall
:12port
echo ║ You have COM ports 3 and 4 ║
goto endall
:13port
echo ║ You have COM ports 1, 3, and 4 ║
goto endall
:14port
echo ║ You have COM ports 2, 3, and 4 ║
goto endall
:15port
echo ║ You have COM ports 1, 2, 3, and 4 ║
:endall
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ To see how this batch file works, enter the following command at ║
echo ║ the DOS prompt "type commtest.bat |more" or to print it out enter ║
echo ║ "type commtest.bat >prn". Thank You, for using Port Finder ! ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
goto :end
:error
cls
echo ╔═════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ The file PF.COM must be in the same default directory ║
echo ║ as COMMTEST.BAT. Please have these two files in the ║
echo ║ same default directory before running COMMTEST.BAT. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════╝
:end